Generating a License that Supports Start Time and End Time
NOTE This section is relevant for v16 (and above) licenses only.
Requirements
Here are the requirements of the license to be generated:
>Allow the developer to specify the start date and time (in hours and minutes) for a new license. The time value is interpreted as per the Coordinated Universal Time (UTC) standard.
>Allow the developer to specify the end date and time (in hours and minutes). The time value is interpreted as per the Coordinated Universal Time (UTC) standard.
Solution
To meet this requirement, a normal license that includes start time and end time values needs to be generated with the settings shown in the screenshots below:
Figure 1: License Template Settings
Given below is the list of fields and values provided. Apart from them, default values are accepted:
>Feature name: Timeslicebased
>Feature version = 1.1.0
>Start date: September 1, 2015 (Absolute date prior to which, the licensed application will not run)
>Start Time (UTC): 01:30 (In Hour: Minute format). Absolute time before which, the licensed application will not run.
>End date: September 1, 2015 (Absolute date after which, the licensed application will not run)
>End Time (UTC): 21:59 (In Hour: Minute format). Absolute time after which, the licensed application will not run
>Template name: Timeslice_New_Template
>Comments: This license will allow the application to run between (start time 01:30 (UTC)) September 1, 2015 and (End Time: 21:59 (UTC)) Sep 30, 2015.
Clicking Optional Attributes shows the following dialog box, where default settings are accepted, except the Type of Locking is set to Unlocked.
Figure 2: Full License Template Settings - Part 2
As shown in the following screenshot, a license code is generated using the saved license template.
Figure 3: Generating a Timeslice-based License